package io.github.talelin.latticy.service.impl;

import io.github.talelin.latticy.mapper.AdvMapper;
import io.github.talelin.latticy.mapper.BookMapper;
import io.github.talelin.latticy.model.AdvDO;
import io.github.talelin.latticy.model.BookDO;
import io.github.talelin.latticy.service.AdvService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者:可
 * 时间:2021/7/14 11:24
 * 描述:永无BUG
 */
@Service
public class AdvServiceImpl implements AdvService {

    @Autowired
    private AdvMapper advMapper;

    @Override
    public List<AdvDO> getAdv() {
        List<AdvDO> advs = advMapper.selectList(null);
        return advs;
    }
}
